let span=document.querySelectorAll(".box>.yu>span")
ajax("http://newshopapi.0melon0.cn/api/f_user/report",{
    "phone": localStorage.getItem("phone"),
    "name":localStorage.getItem("name")
}, "POST").then(res => {
    // length
    console.log(res);
    console.log(span);
    span[0].innerHTML=`<span>${res.result[res.result.length-1].name}</span>`
    span[1].innerHTML=`<span>${localStorage.getItem("days")}</span>`
    console.log(res.result[res.result.length-1].name);
console.log(phone);
}).catch(err => {
    
});